package com.txm.qqdatabase;

import com.txm.qqcommon.User;

import java.util.concurrent.ConcurrentHashMap;

public class DB {

    public static final ConcurrentHashMap<String, User> users = new ConcurrentHashMap<>();
    static {
        users.put("001", new User("admin", "001", "123"));
        users.put("002", new User("至尊宝", "002", "123"));
        users.put("003", new User("紫霞仙子", "003", "123"));
    }

    public static boolean checkUser(String id){
        return users.get(id) != null;
    }

}
